package com.njwb.day18.thd;

public class ThreadDemo02 {
    public static void main(String[] args) {
        MyRunable myRunable  = new MyRunable() ;
        Thread st = new Thread(myRunable);
        st.setName("打印偶数：");
        st.start();


        //重复调用会报错 ：java.lang.IllegalThreadStateException
        //st.start();




    }
}



